package com.cn.simplify.web.form;

/**
 * 保存由Controller操作后返回到页面的消息主体。
 * @author Libra
 *
 */
public class ActionMessageForm {

	/** 状态  可选内容：success | info | warning | danger */
	private String state;
	
	/** 强调 */
	private String strong;
	
	/** 消息 */
	private String message;
	
	/**
	 * 构造函数.
	 * @param state 状态  可选内容：success | info | warning | danger
	 * @param message
	 */
	public ActionMessageForm(String state,String message) {
		this.state=state;
		this.message=message;
	}
	
	/**
	 * 构造函数.
	 * @param state 状态  可选内容：success | info | warning | danger
	 * @param strong
	 * @param message
	 */
	public ActionMessageForm(String state,String strong,String message) {
		this.state=state;
		this.message="<strong>"+strong+"</strong> "+message;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getStrong() {
		return strong;
	}

	public void setStrong(String strong) {
		this.strong = strong;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
